package com.secondary.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.secondary.dao.administrator.AdministratorDao;
import com.secondary.pojos.Administrator;
import com.secondary.pojos.Goods;
import com.secondary.pojos.User;
@Service
public class AdminService {
	@Resource
	private AdministratorDao adminDao;
	public Administrator login(String name, String passWord){
		return  adminDao.login(name, passWord);
		
	}
	public List<Goods> findUnCheckedGoods(){
		return adminDao.findUncheckedGoods();
	}
	public List<User> findAllUser(){
		return adminDao.findAllUser();
	}
	public void updateUserState(int state,int id){
		adminDao.updateUserState(state, id);
	}
	public void updateGoodsState(int state,int id){
		adminDao.updateGoodState(state, id);
	}
}
